﻿using System.ComponentModel.DataAnnotations;

namespace ProduceBasicData.Api.DTO
{
    /// <summary>
    /// 车间管理dto
    /// </summary>
    public class WorkShopDto
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 系统编码
        /// </summary>
        public string? Workshopcode { get; set; }

        /// <summary>
        /// 车间名称
        /// </summary>
        public string Workshopname { get; set; }

        /// <summary>
        /// 车间描述
        /// </summary>
        public string Workshopdesc { get; set; }

        /// <summary>
        /// 数量 赋值
        /// </summary>
        public int? ShopNum { get; set; }

        ///// <summary>
        ///// 工单id
        ///// </summary>
        //public int? Work_orderId { get; set; }

        /// <summary>
        /// 领料员
        /// </summary>
        public int? UserId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(50)]
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(50)]
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 工单状态  1初始化,2待审批,3已下发,4已完成
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 系统编码
        /// </summary>
        public string? Order_no { get; set; }


        /// <summary>
        /// 真实姓名
        /// </summary>
        public string? Name { get; set; }
    }
}
